
//
//  YAYLliabilityViewController.m
//  yayi
//
//  Created by Veer on 16/3/22.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import "YAYLliabilityViewController.h"

@interface YAYLliabilityViewController ()

@property (nonatomic, weak) UIScrollView *sv;
@property (nonatomic, weak) UIWebView *webView;

@end

@implementation YAYLliabilityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"免责声明";
    // Do any additional setup after loading the view.
//    UIScrollView *sv = [[UIScrollView alloc] initWithFrame:self.view.bounds];
//    sv.backgroundColor = [UIColor colorWithWhite:0.965 alpha:1];
//    [self.view addSubview:sv];
//    self.sv = sv;
    [self setupSubView];
    
}


- (void)setupSubView
{

    UIWebView *webView = [[UIWebView alloc] init];
    webView.frame = self.view.bounds;
    [self.view addSubview:webView];
    self.webView = webView;
    
    NSString * bundlePath = [[ NSBundle mainBundle] pathForResource: @ "html" ofType :@"bundle"];
    NSString *htmlPath= [bundlePath stringByAppendingPathComponent :@"disclaimer.html"];
    NSURL *url= [NSURL fileURLWithPath:htmlPath];
    [webView loadRequest:[NSURLRequest requestWithURL:url]];
}


#pragma mark - 按钮相应方法


@end
